#include <iostream>

struct battery
{
    std::string name;
    int price;
};

struct phone
{
    std::string name;
    int price;
    struct battery bat;
};

void printPhone(struct phone iPhone)
{
    std::cout << "Name:\t" << iPhone.name << std::endl;
    std::cout << "Price:\t" << iPhone.price << std::endl;
    std::cout << "Battery:\t" << iPhone.bat.name << "\tprice:\t" << iPhone.bat.price << std::endl;
}
int main(int argc, char const *argv[])
{
    phone iphone;
    battery pinsheng;
    iphone.name = "iPhone 15 Pro Max";
    iphone.price = 8999;
    iphone.bat.name = "原装";
    iphone.bat.price = 699;
    pinsheng.name = "品胜";
    pinsheng.price = 999;
    // iphone.bat = pinsheng;
    printPhone(iphone);

    printPhone(iphone);

    return 0;
}
